/*
 * @Author: your name
 * @Date: 2021-01-29 15:08:34
 * @LastEditTime: 2021-02-04 11:07:20
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \wechat-node\routes\news.js
 */
const router = require('koa-router')();
const {wordsModel} = require('../model/words');

// 获取单词
router.get('/words', async (ctx, next) => {
    await wordsModel.getWords(ctx);
});
router.post('/add/rememberWords', async (ctx, next) => {
    await wordsModel.rememberWords(ctx);
});
module.exports = router;